package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.math.BigDecimal;

import com.wyzz.hr.pojo.Attendshift;

public abstract class BaseAttendshift implements Serializable {

	public BaseAttendshift() {
		hashCode = 0x80000000;
		attsIsDefault = Integer.valueOf(0);
		initialize();
	}

	public BaseAttendshift(String id) {
		hashCode = 0x80000000;
		attsIsDefault = Integer.valueOf(0);
		setId(id);
		initialize();
	}

	public BaseAttendshift(String id, String attsName, Integer attsNightShift,
			String attsColor, Integer attsSortId) {
		hashCode = 0x80000000;
		attsIsDefault = Integer.valueOf(0);
		setId(id);
		setAttsName(attsName);
		setAttsNightShift(attsNightShift);
		setAttsColor(attsColor);
		setAttsSortId(attsSortId);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getAttsName() {
		return attsName;
	}

	public void setAttsName(String attsName) {
		this.attsName = attsName;
	}

	public String getAttsDesc() {
		return attsDesc;
	}

	public void setAttsDesc(String attsDesc) {
		this.attsDesc = attsDesc;
	}

	public String getAttsColor() {
		return attsColor;
	}

	public void setAttsColor(String attsColor) {
		this.attsColor = attsColor;
	}

	public String getAttsShortName() {
		return attsShortName;
	}

	public void setAttsShortName(String attsShortName) {
		this.attsShortName = attsShortName;
	}

	public Integer getAttsIsDefault() {
		return attsIsDefault;
	}

	public void setAttsIsDefault(Integer attsIsDefault) {
		this.attsIsDefault = attsIsDefault;
	}

	public Integer getAttsSortId() {
		return attsSortId;
	}

	public void setAttsSortId(Integer attsSortId) {
		this.attsSortId = attsSortId;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Attendshift))
			return false;
		Attendshift attendshift = (Attendshift) obj;
		if (null == getId() || null == attendshift.getId())
			return false;
		else
			return getId().equals(attendshift.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public Integer getAttsNightShift() {
		return attsNightShift;
	}

	public void setAttsNightShift(Integer attsNightShift) {
		this.attsNightShift = attsNightShift;
	}

	public String getAttsSession() {
		return attsSession;
	}

	public void setAttsSession(String attsSession) {
		this.attsSession = attsSession;
	}

	public BigDecimal getAttsWorkingHour() {
		return attsWorkingHour;
	}

	public void setAttsWorkingHour(BigDecimal attsWorkingHour) {
		this.attsWorkingHour = attsWorkingHour;
	}

	public Integer getAttsStatus() {
		return attsStatus;
	}

	public void setAttsStatus(Integer attsStatus) {
		this.attsStatus = attsStatus;
	}

	public Integer getAttsStricked() {
		return attsStricked;
	}

	public void setAttsStricked(Integer attsStricked) {
		this.attsStricked = attsStricked;
	}

	public static String REF = "Attendshift";
	public static String PROP_Night_Shift = "attsNightShift";
	public static String PROP_ATTS_IS_DEFAULT = "attsIsDefault";
	public static String PROP_ATTS_DESC = "attsDesc";
	public static String PROP_ATTS_SORT_ID = "attsSortId";
	public static String PROP_ATTS_NAME = "attsName";
	public static String PROP_ATTS_SHORT_NAME = "attsShortName";
	public static String PROP_ATTS_COLOR = "attsColor";
	public static String PROP_ID = "id";
	public static String PROP_ATTS_SESSION = "attsSession";
	public static String PROP_ATTS_WORKING_HOUR = "attsWorkingHour";
	public static String PROP_ATTS_STATUS = "attsStatus";
	public static String PROP_ATTS_STRICKED = "attsStricked";
	private int hashCode;
	private String id;
	private String attsName;
	private String attsDesc;
	private Integer attsNightShift;
	private String attsColor;
	private String attsShortName;
	private Integer attsIsDefault;
	private Integer attsSortId;
	private String attsSession;
	private BigDecimal attsWorkingHour;
	private Integer attsStatus;
	private Integer attsStricked;

}
